package com.fengwk.support.proxy.http.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.core.annotation.AliasFor;

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface HttpClient {

	/**
	 * 统一路径
	 * 
	 * @return
	 */
	@AliasFor("path")
	String value() default "";

	/**
	 * 统一路径
	 * 
	 * @return
	 */
	@AliasFor("value")
	String path() default "";

	/**
	 * url前缀
	 * 
	 * @return
	 */
	String url() default "";
	
	/**
	 * 静态的url资源前缀
	 * 
	 * @return
	 */
	String staticUrl() default "";

	/**
	 * 当前web应用url前缀
	 */
	boolean selfUrl() default false;
	
	/**
	 * 开启JsonMap解析
	 * 
	 * @return
	 */
	boolean decodeJsonMap() default true;

}
